<!doctype html>
<html lang="en"> <!--<![endif]-->
<?php $this->load->view("templates/page/member/head") . "\n\t";
$act = $this->router->fetch_method();
$class = $this->router->fetch_class();
if($act == "createquestion"){
	$this->load->view("templates/page/member/header2"). "\n\t";
	$this->load->view('templates/page/member/sideleft2')."\n\t";
}elseif($class == "home"){
	$this->load->view("templates/page/member/header1"). "\n\t";
	$this->load->view('templates/page/member/sideleft1')."\n\t";
}else{
	$this->load->view("templates/page/member/header2"). "\n\t";
}
 if($this->session->flashdata('success_message')){ ?>
	<div style="margin-top:5%;" class="container">
	<div class="alert alert-block alert-success fade in">
	  <button type="button" data-dismiss="alert" class="close"><i class="icon-remove"></i></button>
	  <p><?php echo $this->session->flashdata('success_message') ?></p>
	</div>
 </div>
 <?php } ?>
 
<?php
	 if($this->session->flashdata('error_message')){ ?>
	<div style="margin-top:5%;" class="container">
	<div class="alert alert-block alert-error fade in">
	  <button type="button" data-dismiss="alert" class="close"><i class="icon-remove"></i></button>
	  <p><?php echo $this->session->flashdata('error_message') ?></p>
	</div>
 </div>
<?php } 
//echo $act; 
if (is_array($path))
{
	foreach($path as $value)
	{
		$this->load->view($path);
	}
}
else
{
	$this->load->view($path);
}
$this->load->view("templates/page/member/footer");
$this->load->view("templates/page/member/footer_js");
echo '</body>' . "\n";

?>
<?php if(isset($nameClass) && $nameClass = 'review') : ?>
    <?php if(isset($nameTemplate)) : ?>
        <?php echo $this->load->view('member/theme_custom'); ?>
    <?php endif; ?>
<?php endif; ?>
</html>
